<?php
/**
 * @file HotSpotController.php $
 * @author LiangJian (liangjian@haibao.com) $
 * @date 2015-5-21 下午2:43:02 $
 * @brief 市场（海报热点） $
 */
namespace haibao\cms\business\control\pc\channel\event;

class HotSpotController extends \haibao\cms\business\control\Base{

	public function __construct($updateTime = null, $controlId, $isPublish){
		parent::__construct($updateTime, $controlId, $isPublish);
	}
	
	/**
	 * 获取模版内容
	 */
	public function displayTemplateHtml(){
		$controlData = $this->getParameter(self::$CONTROL_DATA);
		$content = $this->getParameter(self::$CONTROL_CONTENT);
		$parameters = array();
		if($controlData['auto']){
			$temp = array();
			foreach($controlData['auto'] as $data){
				$parameterValue = json_decode($data['ParameterValue']);
				array_push($parameters,$parameterValue);
			}
		}
		$this->assign('parameters',$parameters);
		$path = $this->generateHtmlPath(__CLASS__);
		$this->generateHtml($path,$content);
		return $this->getHtml($path);
	}
}